package com.zt.kennedy.beans.user;

import java.util.List;
import java.util.Set;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class Role {
    @Id
    private String _id;
    private Integer id;
    private String rolename;
    private Set<Permission> permissionList;
    private List<String> permissionsName;

    public Role(String rolename) {
        super();
        this.rolename = rolename;
    }

    public Role() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public Set<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(Set<Permission> permissionList) {
        this.permissionList = permissionList;
    }

    public List<String> getPermissionsName() {
        return permissionsName;
    }

    public void setPermissionsName(List<String> permissionsName) {
        this.permissionsName = permissionsName;
    }
}
